#ifndef GROUPMORE_H
#define GROUPMORE_H

#include <QWidget>
#include "widget.h"
namespace Ui {
class GroupMore;
}

struct group_memb {
    QString membname;
    QString job;
    QString status;
    QByteArray img;
};

class GroupMore : public QWidget
{
    Q_OBJECT

public:
    explicit GroupMore(QString groupname, QString username, QTcpSocket *s, QWidget *parent = nullptr);
    ~GroupMore();
    void onListWidgetItemClicked(QPoint pos);
public slots:
    void closeEvent(QCloseEvent *event);
signals:
    void aboutToClose(GroupMore* gm);

private:
    Ui::GroupMore *ui;
    QString _groupname;
    QString _username;
    QTcpSocket *_socket;
    QList<group_memb> _members; // 存储group_memb结构体的列表
};

#endif // GROUPMORE_H
